package com.apex.crm.dao;

import com.apex.crm.base.BaseMapper;
import com.apex.crm.base.BaseQuery;
import com.apex.crm.vo.CustomerOrder;
import org.springframework.dao.DataAccessException;

import java.util.List;
import java.util.Map;

public interface CustomerOrderMapper extends BaseMapper<CustomerOrder,Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(CustomerOrder record);

    //int insertSelective(CustomerOrder record);

    CustomerOrder selectByPrimaryKey(Integer id);

    //int updateByPrimaryKeySelective(CustomerOrder record);

    int updateByPrimaryKey(CustomerOrder record);

    //查询所有订单
    Map<String, Object> queryCustomerOrderByOrderId(Integer orderId);

    //多条件查询
    public List<CustomerOrder> selectByParams(BaseQuery baseQuery) throws DataAccessException;

    //查询单个订单
    public CustomerOrder  queryLastCustomerOrderByCusId(Integer cusId);



}